﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccessLayer.Entity;
using DataAccessLayer.Adapter;
namespace BussinessLayer
{
    public class TinhThanhBussiness
    {
        //clsTinhThanh clTinh;
        TinhThanhAdapter tinhthanh = new TinhThanhAdapter();
       // object kq;
        public DataTable LoadTinhThanh()
        {
            return tinhthanh.LoadTinhThanh();
        }
        //public object KTTrungMa(clsTinh_ThanhPho clTinhThanh)
        //{
        //    return kq = tinhthanh.KTTrungMa(clTinhThanh);
        //}
        public void ThemTinh(clsTinh_ThanhPho clTinhThanh)
        {
            tinhthanh.ThemTinhThanh(clTinhThanh);
        }
        public void SuaTinhThanh(clsTinh_ThanhPho clTinhThanh)
        {
            tinhthanh.SuaTinhThanh(clTinhThanh);
        }
        public void XoaTinhThanh(clsTinh_ThanhPho clTinhThanh)
        {
            tinhthanh.XoaTinhThanh(clTinhThanh);
        }
        public object KiemTraMa(clsTinh_ThanhPho clsTinh)
        {
            return tinhthanh.KiemTraMa(clsTinh);
        }

        public object KiemTraTenTinh(clsTinh_ThanhPho clsTinh)
        {
            return tinhthanh.KiemTraTen(clsTinh);
        }
    }
}
